package com.yequan.designpattern.proxy.third_generation;

public class GamePlayerProxy implements IGamePlayer2 {

    private IGamePlayer2 gamePlayer;

    public GamePlayerProxy(IGamePlayer2 gamePlayer) {
        this.gamePlayer = gamePlayer;
    }

    @Override
    public IGamePlayer2 getProxy() {
        return this;
    }

    @Override
    public void login(String account, String password) {
        gamePlayer.login(account, password);
    }

    @Override
    public void killBoss() {
        gamePlayer.killBoss();
    }

    @Override
    public void upgrade() {
        gamePlayer.upgrade();
    }
}
